package kr.hkit.powerjava.chapter12.interfaceex;

interface RemoteControl { //290페이지 예제
	void trunOn();
	void trunOff();
}

public class AnonymousClassTest { 
	public static void main(String[] args) {
		RemoteControl ac = new RemoteControl() {

			@Override
			public void trunOn() {
				System.out.println("TV turnOn");
			}

			@Override
			public void trunOff() {
				System.out.println("TV turnOff");
			}
			
		};
		
		ac.trunOn();
		ac.trunOff();
	}

}
